package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author jay
 */
public interface IBlogService extends IService<Blog> {

    /**
     * 按id查询笔记
     */
    Result queryBlogById(Long id);

    /**
     * 查询当前页blog数据
     */
    Result queryHotBlog(Integer current);

    /**
     * 点赞
     */
    Result likeBlog(Long id);

    /**
     * 查询点赞排行top5用户
     */
    Result queryBlogLikes(Long id);

    Result saveBlog(Blog blog);

    /**
     * 关注推送
     */
    Result queryBlogOfFollow(Long max, Integer offset);
}
